package com.shangxian.giveithome.entity;

import lombok.Data;

@Data
public class MechanismDataUp {

    /**
     * 机构id
     **/
    private Long id;

    /**
     * 义工数量
     **/
    private Boolean volunteerNumber;

    /**
     * 活动数量
     **/
    private Boolean activityNumber;

    /**
     * 救助数量
     **/
    private Boolean rescueNumber;

    /**
     * 收容数量
     **/
    private Boolean asylumNumber;

    /**
     * 义工未处理数量
     **/
    private Boolean volunteerUntreated;

    /**
     * 救助新数据数量
     **/
    private Boolean rescueNew;

    /**
     * 添加或减少
     */
    private Boolean inOrDe;


    public MechanismDataUp(Long id, Boolean volunteerNumber, Boolean activityNumber, Boolean rescueNumber, Boolean asylumNumber, Boolean volunteerUntreated, Boolean rescueNew, Boolean inOrDe) {
        this.id = id;
        this.volunteerNumber = volunteerNumber;
        this.activityNumber = activityNumber;
        this.rescueNumber = rescueNumber;
        this.asylumNumber = asylumNumber;
        this.volunteerUntreated = volunteerUntreated;
        this.rescueNew = rescueNew;
        this.inOrDe = inOrDe;
    }

    public static MechanismDataUp Volunteer(Long id, Boolean volunteerNumber, Boolean inOrDe) {
        return new MechanismDataUp(id, volunteerNumber, null, null, null, null, null, inOrDe);
    }

    public static MechanismDataUp ActivityNumber(Long id, Boolean activityNumber, Boolean inOrDe) {
        return new MechanismDataUp(id, null, activityNumber, null, null, null, null, inOrDe);
    }

    public static MechanismDataUp RescueNumber(Long id, Boolean rescueNumber, Boolean inOrDe) {
        return new MechanismDataUp(id, null, null, rescueNumber, null, null, null, inOrDe);
    }

    public static MechanismDataUp AsylumNumber(Long id, Boolean asylumNumber, Boolean inOrDe) {
        return new MechanismDataUp(id, null, null, null, asylumNumber, null, null, inOrDe);

    }

    public static MechanismDataUp VolunteerUntreated(Long id, Boolean volunteerUntreated, Boolean inOrDe) {
        return new MechanismDataUp(id, null, null, null, null, volunteerUntreated, null, inOrDe);

    }

    public static MechanismDataUp RescueNew(Long id, Boolean rescueNew, Boolean inOrDe) {
        return new MechanismDataUp(id, null, null, null, null, null, rescueNew, inOrDe);

    }

}
